package thinkingJava.chapter14;

import java.util.Arrays;
import java.util.List;

public class SnowRemovalRobot implements Robot {
	private String name;
	public SnowRemovalRobot(String name) {
		this.name = name;
	}
	public String name() {
		return name;
	}
	public String model() {
		return "snowBot Seris.11";
	}
	public List<Operation> operations() {
		return Arrays.asList(
			new Operation(){
				public String description() {
					return name + " can shoval snow";
				}
				public void command() {
					System.out.println(name + " shovaling snow");
				}
			},
			new Operation(){
				public String description() {
					return name + " can chip ice";
				}
				public void command() {
					System.out.println(name + " chipping ice");
				}
			},
			new Operation(){
				public String description() {
					return name + " can clear proof";
				}
				public void command() {
					System.out.println(name + " cleaning proof");
				}
			});
	}
	public static void main(String[] args) {
		Robot.Test.test(new SnowRemovalRobot("snowCleaner"));
	}
}
